#include<stdio.h>

void main()
{
    int interger, i, max, min, sum;
    max=-32768;
    min=32767;
    sum=0;
    for(i=1;i<=10;i++)
    {
        printf("Input number %d=",i);
        scanf("%d",&interger);
        sum+=interger;
        if(interger>max)max=interger;
        if(interger<min)min=interger;

    }
    printf("Canceled max score:%d\nCanceled min score: %d\n",max,min);
    printf(" Average score: %d\n",(sum-max-min)/8);
}